<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ghp
  Date: 2022/10/11
  Time: 8:50
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
    <title>c_url</title>
</head>
<body>
使用绝对路径构造URL:<br/>
<c:url var="myURL" value="http://localhost:8080/day06_Seventh/html/success.html">
    <c:param name="username" value="张三"></c:param>
    <c:param name="password" value="123"></c:param>
</c:url>
<a href="${myURL}">success.html</a><br/>
使用相对路径构造URL:<br/>
<c:url var="myURL" value="test.jsp?username=李四&password=123"/>
<a href="${myURL}">test.jsp</a>
</body>
</html>
